import './App.css'

import React, { Component } from 'react'
import { Link, Route, Switch, Redirect } from 'react-router-dom'
import Login from './pages/Login/Login'
import Home from './pages/Home'

export default class App extends Component {
  render() {
    return (
      <>
        <Switch>
          <Redirect exact from="/" to="/home" />
          <Route path="/home" component={Home} />
          <Route path="/login" component={Login} />
          <Route
            path="/register"
            component={React.lazy(() => import('./pages/Register'))}
          />
        </Switch>
      </>
    )
  }
}
